
<!--********************* Part1:Jsp Head *********************-->

<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ include file="/framework/head.jsp"%>

<!--********************* Part2:Java Code *********************-->
<%
    WarehouseCategoryPageData obj = (WarehouseCategoryPageData)context.getValue("WarehouseCategoryPageData");
%>

<!--********************* Part3:JavaScript Code ***************-->
<script language="javascript">

var g_check_items = new Array();
var g_i = 0 ;

g_check_items[g_i++] = new CheckItem("仓库编码","WarehouseCode",true,true,30,false,0);

g_check_items[g_i++] = new CheckItem("仓库名称","WarehouseName",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("分类编码","CategoryCode",true,true,30,false,0);

g_check_items[g_i++] = new CheckItem("分类名称","CategoryName",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("上级分类编码","ParentCategoryCode",false,true,30,false,0);

g_check_items[g_i++] = new CheckItem("是否有效","Status",true,true,1,false,0);

g_check_items[g_i++] = new CheckItem("创建用户ID","CreateUserId",true,true,32,false,0);

g_check_items[g_i++] = new CheckItem("创建用户","CreateUser",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("单证创建时间","CreateTime",false,true,20,false,0);

g_check_items[g_i++] = new CheckItem("最后修改人ID","LastUpdateUserId",true,true,32,false,0);

g_check_items[g_i++] = new CheckItem("最后修改人","LastUpdateUser",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("最后修改时间","LastUpdateTime",false,true,20,false,0);


function doSaveAndNew()
{
    if(!CheckInput(g_check_items)) return false;
    SetAction("saveAndNewWarehouseCategory");
    frm.submit();
}
function doSave()
{
    if(!CheckInput(g_check_items)) return false;
    SetAction("saveWarehouseCategory");
    frm.submit();
}
function doCancel()
{
    SetAction("backListWarehouseCategory");
    frm.submit();
}

key_InitDefault();
key_RegSubmitHandler(doSaveAndNew);
</script>

<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->

<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code">

<input type=hidden name="Id" value="<%=obj.getId()%>">


<br>

<%=UIManager.addEditHeadTitle("报表产品分类添加/修改页面")%>


<!--********************* Part5:Edit Area  ***************-->
<%=uiEditStart%>>
<%
    int key_tab = 1 ;
%>
<%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>所属仓库：</td>
        <!--  <%=uiEditTD%>>
        
            <input type=text class="texts"  name="WarehouseName" size=20  value="<%=obj.viewWarehouseName(con)%>" key_tab="<%=key_tab++%>">
        </td>-->
        <%//= %>

    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>仓库编码：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="WarehouseCode" size=20  value="<%=obj.viewWarehouseCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>仓库名称：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="WarehouseName" size=20  value="<%=obj.viewWarehouseName(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>分类编码：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="CategoryCode" size=20  value="<%=obj.viewCategoryCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>分类名称：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="CategoryName" size=20  value="<%=obj.viewCategoryName(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>上级分类编码：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="ParentCategoryCode" size=20  value="<%=obj.viewParentCategoryCode(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>是否有效：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Status" size=20  value="<%=obj.viewStatus(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>创建用户ID：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="CreateUserId" size=20  value="<%=obj.viewCreateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>创建用户：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="CreateUser" size=20  value="<%=obj.viewCreateUser(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>单证创建时间：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="CreateTime" size=20  value="<%=obj.viewCreateTime(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>最后修改人ID：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="LastUpdateUserId" size=20  value="<%=obj.viewLastUpdateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>最后修改人：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="LastUpdateUser" size=20  value="<%=obj.viewLastUpdateUser(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    


    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>最后修改时间：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="LastUpdateTime" size=20  value="<%=obj.viewLastUpdateTime(con)%>" key_tab="<%=key_tab++%>">
        </td>
    </tr>
    

<%=uiEditEnd%>

<!--********************* Part6:Action Area  ***************-->
<%=uiCommandStart%>>
    <%=uiCommandTR%>>
        <%=uiCommandTD%>>                     
            <input type=button class="buttons" value=" 保存&添加 " onclick="doSaveAndNew();return false;">
            <input type=button class="buttons" value="    保存   " onclick="doSave();return false;">
            <input type=button class="buttons" value="    返回   " onclick="doCancel();return false;">
        </td>
    </tr>
<%=uiCommandEnd%>
</form>

<%@ include file="/framework/foot.jsp"%>

<!--
    Author    :chengbiao.he
    FileName  :/system/base/WarehouseCategoryEdit.jsp
-->
